﻿//-----------------------------------------------------------------------
// <copyright file="FileVersionCheckRequest.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//     GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
//-----------------------------------------------------------------------
#region Usings

using System.Runtime.Serialization;

#endregion

namespace GateShift.Common.WcfDataContracts.Contracts
{
    /// <summary>
    /// DataContract used for requesting a File Hash Check
    /// </summary>
    [DataContract]
    public struct FileVersionCheckRequest
    {
        /// <summary>
        /// Gets or sets the file name to check
        /// </summary>
        [DataMember(Order = 1, Name = "requestFileName", IsRequired = true)]
        public string FileName { get; set; }

        /// <summary>
        /// Gets or sets the Base64 string version of the file's hash for checking the file hash on the server
        /// </summary>
        [DataMember(Order = 2, Name = "requestFileHash", IsRequired = true)]
        public string Base64FileHash { get; set; }

        /// <summary>
        /// Gets or sets the MapID for the request. Leaving this null specifies the core client
        /// </summary>
        [DataMember(Order = 3, Name = "requestMapID", IsRequired = false)]
        public byte? MapID { get; set; }
    }
}